<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<script type="text/javascript">
	//var t = dojo.widget.byId('menuTree');
//	dojo.event.topic.subscribe(t.eventNames.expand, treeNodeExpanded);                
//	dojo.event.topic.subscribe(t.eventNames.collapse, treeNodeCollapsed);
//	//dojo.event.topic.subscribe("/treeSelected", treeNodeSelected);
//	
//	//dojo.event.topic.subscribe("/save", save);
//	//dojo.event.topic.subscribe("/edit", edit);
//	var s = t.selector;   
//	dojo.event.connect(s, 'select', 'treeNodeSelected');    
</script>


<s:if test="rootNodes.size > 0">
	<s:iterator value="rootNodes" var="rootNode">
		
        
        
		<sx:tree 
		    id="menuTree"
		    rootNode="rootNode"
		    childCollectionProperty="childCategories"
		    nodeIdProperty="id"
		    nodeTitleProperty="name" 
		    value="url"
		    >
		</sx:tree>
	</s:iterator>
</s:if>